<?php
	
	require('includes/connect.php');

	$fname = $_POST['fname'];

	$lname = $_POST['lname'];

	$email = $_POST['emailid'];

	$pass = $_POST['password'];

	$bdate = $_POST['dd']."-".$_POST['mm']."-".$_POST['yy'];

	$gender = $_POST['gender'];

	$ranNo = $_POST['uniqueID'];

	$location = $_POST['location'];

	$adduser = mysql_query("insert into users (`fname`, `lname`, `email_id`, `password`, `birthdate`, `gender`, `unique_id`, `location`) values ('$fname', '$lname', '$email', '$pass', '$bdate', '$gender', '$ranNo', '$location')");

	header('location: index.php');
?>